@tool
extends Node2D


@export var _item_sprite: Sprite2D
@export var item_id: int:
    set(value):
        if value == 0:
            _item_sprite.texture = null
        else:
            _item_sprite.texture = InventoryManager.get_item(value).texture
            
        item_id = value
